package com.homework.dao.mapper;

import com.homework.dao.domain.Goods;

public interface GoodsMapper {
    public Goods getGoodsByCode(String code);
    public Goods getGoodsById(int id);

    //扣减库存
    public boolean deduction(int goodsId);

    public boolean backStock(int goodsId);
}
